package com.kaifamiao.service;

import com.kaifamiao.pojo.Doctor;

import java.util.List;

public interface IDoctorService {
    public List<Doctor> findAll();

    public Doctor findById(int id);

    public Doctor findByUsername(String username);

    public Doctor findByPhoneNumber(String phoneNumber);

    public List<Doctor> findByDepartmentId(int id);

    public boolean addDoctor(Doctor doctor);

    public boolean update(Doctor doctor);

    public boolean delete(int id);

    public int maxPatientsSum();
}
